package cn.tedu.csmallproducts.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateDTO implements Serializable {

    @ApiModelProperty(value = "属性名称", required = true, example = "演示数据001")
    @NotNull(message = "必须填写属性名称")
    private String name;

    @ApiModelProperty(value = "属性拼音", required = true, example = "muban")
    @NotNull(message = "必须填写属性拼音")
    private String pinyin;

    @ApiModelProperty(value = "属性关键字", required = true, example = "xx模板")
    @NotNull(message = "必须填写属性关键字")
    private String keywords;

    @ApiModelProperty(value = "属性模板序号", required = true, example = "9")
    @NotNull(message = "必须填写属性模板序号")
    private Integer sort;
}
